package org.example;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;
import io.netty.buffer.ByteBufUtil;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

public class Test5 {

    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now(); // 获取当前时间
        System.out.println(now);
        LocalDateTime dateTime = now.withNano(0);
        System.out.println(dateTime);


    }

}
